
using System;
using UnityEngine;

public class Boot : BaseSingleMono<Boot>
{
    [SerializeField]private bool b打印日志;

    public Action<bool> Action更新打印日志;

    public void Set打印日志(bool b)
    {
        b打印日志 = b;
        Action更新打印日志?.Invoke(b打印日志);
    }

    protected override void AwakeInit()
    {
        base.AwakeInit();
        Action更新打印日志 += BDebug.监听开关日志;
        Action更新打印日志?.Invoke(b打印日志);
    }

    private void OnDestroy()
    {
        Action更新打印日志 -= BDebug.监听开关日志;
    }
}
